package Simulation;
import java.util.Comparator;

 public class SortableQueueItemComparator implements Comparator<SortableQueueItem>
 {

	 //our comperator always points to the event that happens first
	 
	 public int compare(SortableQueueItem o1, SortableQueueItem o2) {
		if (o1.getSimTime() > o2.getSimTime())
		{
			return 1;
		}
		if (o1.getSimTime() < o2.getSimTime())
		{
			return -1;
		}
		return 0;
	}
 }